package com.probox.common.entity.service.platfom;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.probox.common.entity.domain.platfom.PlatformFreight;
import com.probox.common.entity.domain.platfom.vo.PlatformFreightMoudleVo;
import com.probox.platform.api.domain.PlatformFreightVo;

/**
 * 平台邮费设置Service接口
 *
 * @author usoft
 * @date 2021-06-28
 */
public interface IPlatformFreightService extends IService<PlatformFreight> {


    /**
     * 查询平台邮费设置
     *
     * @param freightUid 平台邮费设置ID
     * @return 平台邮费设置
     */
    public PlatformFreight selectPlatformFreightById(Long freightUid);


    /**
     * 查询平台邮费设置列表
     *
     * @param platformFreight 平台邮费设置
     * @return 平台邮费设置集合
     */
    public List<PlatformFreight> queryList(PlatformFreight platformFreight);


    /**
     * 新增平台邮费设置
     *
     * @param vo 平台邮费设置
     * @return 结果
     */
    public void insertPlatformFreight(PlatformFreightMoudleVo vo);

    /**
     * 修改平台邮费设置
     *
     * @param platformFreight 平台邮费设置
     * @return 结果
     */
    public boolean updatePlatformFreight(PlatformFreight platformFreight);

    /**
     * 批量删除平台邮费设置
     *
     * @param freightUids 需要删除的平台邮费设置ID
     * @return 结果
     */
    public boolean deletePlatformFreightByIds(Long[] freightUids);

    public PlatformFreightMoudleVo getVo(PlatformFreightMoudleVo vo);

    /**
     * 删除邮费信息
     *
     * @param moudleUid
     **/
    public void removeFreight(Long [] moudleUid);

    /**
     * 获取邮费 api
     * @param freightVo
     * @return
     */
    public PlatformFreightVo getFreight(PlatformFreightVo freightVo);
}
